﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using ContractorTimesheet.DataModel;
using ContractorTimesheet.Infrastructure;

namespace ContractorTimesheet.Models
{
    public class MonthlyReportModel
    {

        public MonthlyReportModel()
        {
            ContractorLeaves = new List<ContractorLeave>();
        }

        public string Month { get; set; }

        public string NoOfWorkingDays { get; set; }

        public string NoOfPublicHolidays { get; set; }

        public string PublicHolidays { get; set; }

        public string NoOfActualWorkingDays { get; set; }

        public List<ContractorLeave> ContractorLeaves { get; set; }

        MonthlyReportModel Create(DateTime date, IList<Holiday> holidays)
        {
            MonthlyReportModel model = new MonthlyReportModel
            {

            };

            return model;
        }
    }

    public class ContractorLeave
    {
        private const string dayFormat = "00";

        public ContractorLeave() { }

        public string BadgeNo { get; set; }

        public string ResourceName { get; set; }

        public string PO { get; set; }

        public string NoOfLeavesTaken { get; set; }

        public string LeavesTaken { get; set; }

        public string DaysWorked { get; set; }

    }
}